let axios = require('axios')

export function getDoctor() {
  return axios.get('/sliderList').then((res) => {
    return Promise.resolve(res.data)
  }).catch((err) => {
    console.log(err)
  })
}
// 搜索养老院
export function searchBeadhouse (param) {
  const url = '/searchBeadhouse'
  return axios.post(url, param).then((res) => {
    return Promise.resolve(res)
  }).catch((err) => {
    console.log(err)
  })
}
// 搜索医生
export function searchDoctor (param) {
  const url = '/searchDoctor'
  return axios.post(url, param).then((res) => {
    return Promise.resolve(res)
  }).catch((err) => {
    console.log(err)
  })
}
